import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-11-02
 * Time: 16:20
 */
public class Demo3 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<Integer> queue = new LinkedBlockingQueue<>(1000);
        for (int i = 0; i < 1000; i++) {
            queue.put(i);
        }
        queue.put(1001);
        System.out.println("添加满之后");
    }
}
